package com.ews.onlineexchange.service;

import java.util.List;

import javax.enterprise.inject.Model;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;

import com.ews.onlineexchange.model.ProfessionRatingRecord;

@Model
public class ProfessionRatingList extends EntityQuery<ProfessionRatingRecord> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	public ProfessionRatingList() {
		super();
		setOrder("createDate DESC");
	}

	@Override
	protected List<Predicate> getRestrictions(CriteriaBuilder cb, Root<ProfessionRatingRecord> entity) {
		// TODO Auto-generated method stub
		return super.getRestrictions(cb, entity);
	}
	
	
}
